package com.light.dp.spark;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

import java.util.TimeZone;

@SpringBootApplication
//@EnableDiscoveryClient
//@EnableSwagger2
@ComponentScan(basePackages = {"com.light.dp.spark.*"})
@EnableAsync
//@EnableConfigurationProperties({DatasourceProperties.class, CanalProperties.class})
public class SparkDataProcessingApplication {
    public static void main(String[] args) {
        TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
        SpringApplication.run(SparkDataProcessingApplication.class, args);
    }
}